package org.idea.spring.datasource.ibernate.handler;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

public interface IResultSetHandler {

    /**
     * 将单个结果集转换为相应object对象
     * @param resultSet
     * @return
     * @throws SQLException
     */
    Object handleSingle(ResultSet resultSet) throws SQLException;

    /**
     * 将多个结果集转换为相应list集合
     * @param resultSets
     * @return
     * @throws SQLException
     */
    List<Object> handleList(ResultSet resultSets)throws SQLException;
}
